package com.heima.bos.dao.impl;


import org.springframework.stereotype.Repository;

import com.heima.bos.dao.StaffDaoInter;
import com.heima.bos.domain.Staff;
@Repository
public class StaffDao extends BaseDaoImpl<Staff> implements StaffDaoInter {
	/**
	 * 批量作废
	 * @param ids
	 */
	public void batchCancel(String ids) {
		String[] arr = ids.split(",");
		for (String str : arr) {
			Staff staff = this.getHibernateTemplate().get(Staff.class, str);
			staff.setDeltag("1");
		}
	}

}
